package com.ruoyi.admin.domain.vo.request.supplier;

import com.ruoyi.admin.domain.entity.SupplierModel;
import com.ruoyi.common.page.PageParamRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 供应商客户表分页返回数据格式
 *
 * @author jianhan
 * @date 2023-01-31 09:53:26
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class SupplierPageRequest extends PageParamRequest {


    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "供应商名称")
    private String name;

    @ApiModelProperty(value = "联系人名称")
    private String contactName;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "10供应商 20客户")
    private String type;

    @ApiModelProperty(value = "备注")
    private String remark;


    /**
     * 获取实体对象
     *
     * @return 对象
     * @author jianhan
     * @date 2023-01-31 09:53:26
     **/
    @ApiModelProperty(hidden = true)
    public SupplierModel getSupplierModel() {
        SupplierModel supplierModel = new SupplierModel();
        BeanUtils.copyProperties(this, supplierModel);
        return supplierModel;
    }

}
